package cn.edu.sgu.www.mhxysy.service.fabao.impl;

import cn.edu.sgu.www.mhxysy.entity.fabao.FabaoType;
import cn.edu.sgu.www.mhxysy.mapper.fabao.FabaoTypeMapper;
import cn.edu.sgu.www.mhxysy.service.fabao.FabaoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class FabaoTypeServiceImpl implements FabaoTypeService {

    private final FabaoTypeMapper fabaoTypeMapper;

    @Autowired
    public FabaoTypeServiceImpl(FabaoTypeMapper fabaoTypeMapper) {
        this.fabaoTypeMapper = fabaoTypeMapper;
    }

    @Override
    public List<FabaoType> selectAll() {
        return fabaoTypeMapper.selectList(null);
    }

    @Override
    public FabaoType selectById(Integer id) {
        return fabaoTypeMapper.selectById(id);
    }

}